package com.kfm.base.structure;

public class MyQueueTest {

    public static void main(String[] args) {
        MyQueue myQueue = new MyQueue(1);

        System.out.println(myQueue.isEmpty());

        // 添加
        myQueue.push("a");
        myQueue.push("b");
        myQueue.push("c");
        myQueue.push("d");

        System.out.println(myQueue.size());

        System.out.println(myQueue.pop());
        System.out.println(myQueue.pop());

        System.out.println(myQueue.size());
    }
}
